﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
using MolyMade.Moly.MailMessager.SmtpClient;

namespace MolyMade.Moly.MailMessager
{
    public class Messager
    {
        public Messager(string host=null,int port=25,string account=null,string password=null,
            string uid=null,string partnerUid=null,bool useSsl = false)
        {
            if (host != null) this.Host = host;
            if (account != null) this.Account = account;
            if (password != null) this.PassWord = password;
            if (uid != null) this.Uid = uid;
            if (partnerUid != null) this.PartnerUid = partnerUid;
            this.Port = port;
            this.UseSsl = useSsl;
        }
        public string Host { get; set; }
        public int Port { get; set; }
        public string Account { get; set; }
        public string PassWord { get; set; }
        public string Uid { get; set; }
        public string PartnerUid { get; set; }
        public bool UseSsl { get; set; }
        public void SendMessage(string messageId,byte[] message)
        {
            
        }
        public byte[] ReciveMessage(string messageId)
        {
            return null;
        }
        public void GetResponse(string messageId, byte[] message, Action<byte[]> callback, int timeOut = 10000)
        {
            
        }
        public void WaitForMessage(string messageId, Action<byte[]> callback, int timeOut = 10000)
        {
            
        }
    }
}
